package com.ddstation.app.holiday.service;

import com.ddstation.crud.entity.DtInvsInstitutionHolidayEntity;
import com.ddstation.crud.entity.DtInvsInstitutionHolidayWeeklyEntity;

import java.time.DayOfWeek;
import java.util.List;

public interface HolidayService {
    List<DtInvsInstitutionHolidayEntity> getHolidaysByDuration(String startDate, String endDate, String institutionId);

    DtInvsInstitutionHolidayWeeklyEntity getInstitutionWeeklyRes(String institutionId);

    boolean saveHoliday(DtInvsInstitutionHolidayEntity oneDay);

    boolean saveWeeklyRes(DtInvsInstitutionHolidayWeeklyEntity weeklyRes);

    boolean checkHoliday(String date, String institutionId);

    List<DayOfWeek> getResWeekdays(String institutionId);
}
